<template>
  <div v-if="value">
    <header @click="bas">弹层</header>
    <div>
      <Slot> 1234 </Slot>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    value: {
      type: Boolean,
      default: false
    }
  },
  methods: {
    bas () {
      this.$emit('input', false)
    }
  }

}
</script>

<style>
</style>
